package gui.cen.disp;

import java.awt.*;
import javax.swing.*;

/*Author: John Archer, Contact: john.archer.jpa@gmail.com*/
public class PrototypeDisplay extends JPanel{

    private Prototype prot;

    public PrototypeDisplay(){
        super(new BorderLayout());
        this.setBorder(BorderFactory.createEmptyBorder(0,0,0,0));

        JPanel p1 = new JPanel(new BorderLayout());
        p1.setBorder(BorderFactory.createEmptyBorder(0,2,0,2));
        prot = new Prototype();
        prot.renderFrontEnd(0);
        p1.add(prot,BorderLayout.CENTER);
        this.add(p1,BorderLayout.CENTER);

        this.setVisible(true);
    }

    public void renderFrontEnd(int n){prot.renderFrontEnd(n);}
}
